#include "Init.h"
#include "IM_CoreApi.h"
using namespace IM_GUI_KIT;
Init::Init(){
  std::cout<<"ionit init "<<std::endl;
  IM_CoreApi::Instance()->getListControl();
    std::cout<<"ionit imcore "<<std::endl;
  backgroundThread= new QThread;
  backgroundThread->start();
  engine=new QQmlApplicationEngine();
}
Init::~Init(){
  if (engine!=nullptr) {
      delete engine;
    };
}

QQmlApplicationEngine *Init::getEngine()
{
  return engine;
}

QThread *Init::getBackThread()
{
  return backgroundThread;
}

